package com.ywm.service;

import com.ywm.entity.Blog;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ElasticSearchService {
    boolean getBlogAndToElasticSearch();
    void saveOrUpdateToES(Blog blog);
    List<Map<String, Object>> getBlogFromElasticSearch(String keyword,  int pageNo,  int pageSize) throws IOException;
    void updateEs(Blog blog);
    void DeleteEs(String blogId);
}
